package Constructor;

public class Car {
	
	 int    vinNumber;
     String make;
     String model;
     String color;
     int    gear ;
     boolean started;
   
     
     //Constructor Car
     //Constructor overloading
     
     Car()
     {
     }
   
     Car( String newMake, String newModel, String newColor )
     {
    	 
    	 make = newMake;
    	 model = newModel;
    	 color = newColor;
    	     	 
     }
	
	
	//Start  Method() to know  the car status
    
	 boolean  start()
			{		
		 			System.out.println("car has started true/false: " + started);
		 					 			
		 			if ( started == false)
		 			{
		 			  System.out.println("car has started : " + started);
		 			  started = true;
		 			}
					return started;
			}

		
	
	String changeColor()
			{
		
			if (color =="Red")
			{
		    color = "Black";
			}
			return color;
			}
}
